import random
class NBAStart:
    def __init__(self,name,height,jump,hitRate):
        self.__name=name
        self.__height=height
        self.__hitRate=hitRate

    def training(self):
        self.__hitRate = self.__hitRate + 0.01

    def throwBall(self):
        print("后撤")
        hitRate = random.randint(1,2)
        if(hitRate * self.__hitRate > 1):
            print("球进了")
        else:
            print("不进")

    def getHitRate(self):
        print(self.__hitRate)


kobi= NBAStart("科比",198,150,0.1)
kobi.throwBall()
kobi.getHitRate()

for i in range(80):
    kobi.training()

kobi.getHitRate()
for i in range(100):
    kobi.throwBall()
